package com.moon.moonclientsdk;

import com.moon.moonclientsdk.client.MoonApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "moon.client")
@ComponentScan
@Data
public class MoonApiConfig {

    private String accessKey;
    private String secretKey;
    @Bean
    public MoonApiClient MoonApiClient() {
        return new MoonApiClient(accessKey, secretKey);
    }
}
